Northwoods.Go Assembly > Northwoods.Go Namespace > GoLayerCollection Class > SortByZOrder Method : SortByZOrder(GoObject[]) Method |
Array
of GoObjects by their Z-order position in these layers.This method does not modify the order of any objects in any layer--it simply modifies the argument array by sorting the objects by their current Z-order in these layers. For example, if you have a few selected objects, you can use this method to find the selected object which is in front of the other selected objects. That would be the last object in the array after calling this method.
If one or more elements of the argument array a are not GoObjects that belong to one of these layers, the resulting sort order is indeterminate. In many circumstances you can easily create an array of GoObject
s by calling CopyArray.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2